import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_public/flutter_public.dart';

/// FileName linear_gradient_container
///
/// @Author lax
/// @Date 2024/9/24
///
/// @Description

class LinearGradientContainer extends Container {
  LinearGradientContainer({
    super.key,
    super.width,
    super.height,
    super.margin,
    super.padding,
    super.alignment,
    super.child,
    double? radius = 5,
    List<Color>? colors,
    Color? shadowColor,
    Decoration? decoration,
    BorderRadius? borderRadius,
  }) : super(
          decoration: decoration ??
              LinearGradientDecoration(
                radius: radius,
                borderRadius: borderRadius,
                colors: colors,
                boxShadow: shadowColor == null
                    ? null
                    : [PublicBoxShadow(color: shadowColor)],
              ),
        );
}
